public class ArcNode {
    public int adjVex;//邻接顶点
    public int value;//距离
    public String name;//名字
    public int time;
    public ArcNode nextArc;//下一个邻接结点
    public ArcNode(){//无参的构造方法
        this(-1,0,null,0,null);
    }

    public ArcNode(int adjVex) {
        this(adjVex,0,null,0,null);
    }
    public ArcNode(int adjVex,int value,String name){
        this(adjVex,value,name,0,null);
    }
    public ArcNode(int adjVex,int value,String name,int time,ArcNode nextArc){
        this.value=value; 
        this.adjVex=adjVex;
        this.nextArc=nextArc;
        this.name=name;
        this.time=time;
    }
}